/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 涛
 * Date: 2023-10-16
 * Time: 10:47
 */
public class Test {
    public static void main(String[] args) {
        BinarySearchTree binarySearchTree = new BinarySearchTree();
        int[] array = {5, 12, 3, 2, 11, 15};
        for (int i = 0; i < array.length; i++) {
            binarySearchTree.insert(array[i]);
        }
        //System.out.println(binarySearchTree.search(11));
        //System.out.println(binarySearchTree.search(111));
        binarySearchTree.remove(12);
        System.out.println("===================");
    }
}
